<?php

namespace App\Http\Controllers;

use App\Models\User;
use Illuminate\Http\Request;

class FollowController extends Controller
{
    //关注列表
    public function followed(User $user)
    {
        $follows = $user->following()->simplePaginate(5);
        return view('follow.index', compact('follows'));
    }

    public function following(User $user)
    {
        $follows = $user->followed()->simplePaginate(5);
        return view('follow.index', compact('follows'));
    }
}
